import Vue from 'vue'
import App from './App.vue'

//引入路由配置
import router from "@/router";
//引入仓库进行注册
import store from "@/store";
//引入 mock
import '@/mock/mockServe'

//引入 element
import {Message} from 'element-ui';

//全局组件
import LogoSearch from '@/components/Logo&search'           //logo和搜索框
Vue.component(LogoSearch.name,LogoSearch)  
import TypeNav from '@/components/TypeNav'                  //三级菜单     
Vue.component(TypeNav.name,TypeNav);

//富文本框
import { quillEditor } from "vue-quill-editor";
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";


//关闭浏览器提示警告
Vue.config.productionTip = false

Vue.prototype.$message = Message;                           //提示(注册在全局)

new Vue({
    render: h => h(App),
    //全局事件总线$bus配置
    // beforeCreate() {
    //   Vue.prototype.$bus = this;
    //   Vue.prototype.$API = API;
    // },
    //需要把router进行注册
    router,
    store
}).$mount('#app')
